const mysql = require("mysql2/promise");

const con = mysql.createPool({
  host: "81.70.58.141",
  user: "root",
  password: "a123456",
  database: "yingman",
});

class Result {
  constructor() {
    this.code = 0;
    this.msg = "ok";
    this.data = null;
  }
}

module.exports = { con, Result };
